local juefa = fk.CreateSkill{
    name = "ym1__juefa"
}
Fk:loadTranslationTable{
    ["ym1__juefa"] = "绝伐",
    [":ym1__juefa"] = "你使用伤害牌时，下轮摸牌阶段摸牌数和出【杀】次数+1。",
    ["@!ym1__juefa"] = "绝伐",
    ["@ym1__juefa-round"] = "绝伐",

    ["$ym1__juefa1"] = "受封武安，为国尽忠！",
    ["$ym1__juefa2"] = "战场，是我的舞台！",
    ["$ym1__juefa3"] = "兴兵伐楚，稳大秦基业！",
    ["$ym1__juefa4"] = "百战百胜，攻无不克！",
}
juefa:addEffect(fk.CardUsing,{
    can_trigger = function (self, event, target, player, data)
        return player:hasSkill(juefa.name) and target == player and data.card.is_damage_card
    end,
    anim_type = "offensive",
    on_cost = Util.TrueFunc,
    on_use = function (self, event, target, player, data)
        player.room:addPlayerMark(player,"@!ym1__juefa")
    end,
})
juefa:addEffect(fk.RoundStart,{
    can_refresh = function (self, event, target, player, data)
        return player:getMark("@!ym1__juefa") > 0
    end,
    on_refresh = function (self, event, target, player, data)
        local room = player.room
        room:setPlayerMark(player,"@ym1__juefa-round",player:getMark("@!ym1__juefa"))
        room:setPlayerMark(player,"@!ym1__juefa",0)
    end,
})
juefa:addEffect(fk.DrawNCards,{
    can_refresh = function (self, event, target, player, data)
        return target == player and player:getMark("@ym1__juefa-round") > 0
    end,
    on_refresh = function (self, event, target, player, data)
        data.n = data.n + player:getMark("@ym1__juefa-round")
    end,
})
juefa:addEffect("targetmod",{
    residue_func = function(self, player, skill, scope)
        if player:getMark("@ym1__juefa-round") > 0 and skill.trueName == "slash_skill" and scope == Player.HistoryPhase then
            return player:getMark("@ym1__juefa-round")
        end
    end,
})
return juefa